import os, site
from paste.script.util.logging_config import fileConfig

virtual_env = "/usr/local/cloudcrv/tg2env"
python_eggs = "/lib/python2.5/site-packages"
full_egg_path = virtual_env + python_eggs

import os
os.environ['PYTHON_EGG_CACHE'] = '/var/httpd/egg_cache'
config = os.path.join(os.path.dirname(__file__), 'production.ini')

fileConfig( config )

site.addsitedir(full_egg_path)

from paste.deploy import loadapp
application = loadapp('config:%s' % config)

